﻿using System;

namespace CodeGenerator.Helper
{
    [Serializable]
    public class ServiceParameter
    {
        /// <summary>
        /// 主键列名
        /// </summary>
        public string PKName { get; set; }

        private string _pkDataType = string.Empty;
        /// <summary>
        /// 主键列数据类型
        /// </summary>
        public string PKDataType
        {
            set { _pkDataType = value;}
            get
            {
                switch (_pkDataType)
                {
                    case "bigint":
                        return "long";
                    default:
                        return _pkDataType;
                }
            }
        }

        /// <summary>
        /// 模块名称
        /// </summary>
        public string Name { get;  set; }

        /// <summary>
        /// 模块命名空间名称
        /// </summary>
        public string ClassNamespace { get;  set; }

        /// <summary>
        /// Service 命名空间名称
        /// </summary>
        public string ServiceNamespace { get; set; }

        /// <summary>
        /// Model 命名空间名称
        /// </summary>
        public string ModelNamespace { get; set; }

        /// <summary>
        /// 接口控制器 命名控件名称
        /// </summary>
        public string ControllerNamespace { get; set; }
        /// <summary>
        /// dto控制器
        /// </summary>
        public string DtoNamespace { get; set; }

        /// <summary>
        /// Model 描述
        /// </summary>
        public string Description { get; set; }
    }


}